//
//  ZZBaseView.m
//  OCFrame
//
//  Created by hfzhangzhang on 2017/2/23.
//  Copyright © 2017年 hfzhangzhang. All rights reserved.
//

#import "ZZBaseView.h"

@implementation ZZBaseView
- (instancetype)init
{
    self = [super init];
    if (self) {
        [self setupViews];
        [self bindViewModel];
    }
    return self;
}

- (instancetype)initWithViewModel:(id<ZZBaseViewProtocol>)viewModel {
    
    self = [super init];
    if (self) {
        [self setupViews];
        [self bindViewModel];
    }
    return self;
}

- (void)bindViewModel {
}

- (void)setupViews {
}

- (void)addReturnKeyBoard {
    
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] init];
    tap.numberOfTapsRequired = 1;
    tap.numberOfTouchesRequired = 1;
//    [tap.rac_gestureSignal subscribeNext:^(id x) {
//        AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
//        [appDelegate.window endEditing:YES];
//    }];
    [self addGestureRecognizer:tap];
}


@end
